home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: nntp-hub3.barrnet.net!voder!nsc!rustler!toml
- From: toml@rustler.nsc.com (Thomas Likens)
- Subject: Re: Object Oriented programming in C ????
- Message-ID: <Do5xMF.BCo@nsc.nsc.com>
- Sender: news@nsc.nsc.com (netnews maintenance)
- Nntp-Posting-Host: rustler.nsc.com
- Reply-To: toml@rustler.nsc.com (Thomas Likens)
- Organization: National Semiconductor, Santa Clara
- References: <4higq7$5j2@sidhe.memra.com> <4i2hvm$ect@newshost.cyberramp.net>
- Date: Tue, 12 Mar 1996 16:25:27 GMT
-
- In article <4i2hvm$ect@newshost.cyberramp.net>, sinan@cyberramp.net (John Noland) writes:
- |> In article <4higq7$5j2@sidhe.memra.com>, michael@memra.com says...
- |> >
- |> >Does anyone know of resources that explain how to write OO programs in C?
- |> >I know about C++ and Objective C and I don't like either one. I would
- |> >like to be able to write OO programs in straight C (with some
- |> >preprocessor help for syntactic sugar) so that my code is fully portable
- |> >between a number os OS's.
- |> >
- |>
- |> There is a book on this that I really like.
- |>
- |> C+C++ - Programming With Objects in C and C++
- |> Alan I. Holub
- |> McGraw-Hill 1992, ISBN 0-07-029662-6
- |>
- |> The first chapter is called Object-Oriented Programming in C. It's a great
- |> book. He also has a book called "Compiler Design in C". He uses an object
- |> oriented development style in straight C to develop a C compiler. FWIW, I
- |> think you'll find that if you have an application that lends itself to
- |> an object-oriented solution, C++ is the better choice.
- |>
- |> -John
- |>
- |>
-
- I whole-heartedly agree. Holub's book is excellent. In fact anything he
- writes is outstanding. Two other books definitely worth a look...
-
- __The C Companion__ - An older work but still valid.
-
- and
-
- __Just Enough Rope to Shoot Yourself in the Foot__ - Describes the various
- pitfalls and problems associated with programming in C and C++ picked up over
- a lifetime of wrestling with them.
-
-
- --Tom
-